$def with (page)

$ _x = ctx.setdefault('cssfile', 'edit')

$var title: $_("Edit %(title)s", title=page.key)

$:render_template("lib/edit_head", page)

<div id="contentBody">

    <form name="edit" method="post" action="" class="olform">

	$:macros.TypeChanger(page.type)

    <div class="clearfix"></div>

    <div class="formElement">
        <div class="label"><label for="description">$_("Description:")</label></div>
        <div class="input">
            <textarea id="description" name="description" rows="3" cols="80" style="height: 100px;">$page.description</textarea>
        </div>
    </div>

    <div class="formElement">
        <div class="label"><label for="readers#0">$_("Readers:")</label></div>
        <div class="input">
            $for i, m in enumerate(page.readers):
                <input id="readers#$i" type="text" name="readers#${i}.key" value="$page.readers[i].key"/>
            $for i in range(len(page.readers), len(page.readers)+2):
                <input id="readers#$i" type="text" name="readers#${i}.key" value=""/>
        </div>
    </div>


    <div class="formElement">
        <div class="label"><label for="writers#0">$_("Writers:")</label></div>
        <div class="input">
            $for i, m in enumerate(page.writers):
                <input id="writers#$i" type="text" name="writers#${i}.key" value="$page.writes[i].key"/>
            $for i in range(len(page.writers), len(page.writers)+2):
                <input id="writers#$i" type="text" name="writers#${i}.key" value=""/>
        </div>
    </div>

    $:macros.EditButtons(comment=page.comment_)

    </form>
</div>
